<?php get_header(); ?>

<div id="content" class="single image">
	<?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>
	<?php the_breadcrumb(); ?>

	<div id="post">
	<!--post title-->
	<h1 id="post-<?php the_ID(); ?>"><?php echo get_the_title($post->post_parent); ?> &raquo; <?php the_title(); ?></h1>
	
	<p><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
	
	<!--post text with the read more link-->
	<?php the_content(); ?>
	
	</div><!--end #post-->
	
	<?php endwhile; // end of one post ?>
	
    <!-- Previous/Next page navigation -->
    <div class="page-nav">
	    <div class="nav-previous"><?php previous_image_link() ?></div>
	    <div class="nav-next"><?php next_image_link() ?></div>
    </div>   
	
	<?php else : // do not delete ?>
	
	<h3><?php _e("Page not Found"); ?></h3>
    <p><?php _e("We're sorry, but the page you're looking for isn't here."); ?></p>
    <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar"); ?></p>

    <?php endif; // do not delete ?>
	
	
<!--single.php end-->
</div>

<!--include sidebar-->
<?php get_sidebar(); ?>

<!--include footer-->
<?php get_footer(); ?>